[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
DELETE SEXP
Function
Delete the filename specified by SEXP from the disk it resides on.
Syntax
DELETE file
file - A string expression with the drive, path and file name to
delete.
Remarks
It is always a good idea to leave things as you found them (as much as
possible). This statement allows you to delete temporary files created
by your PPE with the FCREATE/FOPEN/FAPPEND statements.
Examples
INTEGER retcode
STRING s
FCREATE 1,"TMP.LST",O_WR,S_DB
LET s = "START"
WHILE (LEN(s) > 0) DO
LET s = ""
PRINTLN "Enter a name or ENTER alone to quit:"
INPUT "Name",s
IF (LEN(s) > 0) FPUTLN 1,s
ENDWHILE
FCLOSE 1
SHELL 1,retcode,"SORT","< TMP.LST > TMP.SRT"
NEWLINE
PRINTLN "Unsorted List:"
PRINTLN "--------------"
DISPFILE "TMP.LST",DEFS
NEWLINE
PRINTLN "Sorted List:"
PRINTLN "--------------"
DISPFILE "TMP.SRT",DEFS
DELETE "TMP.LST"
DELETE "TMP.SRT"
See Also:
RENAME
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson